﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>LiveNet Sample Site</title>
    <style type="text/css">
        p
        {
            border: thin solid #C0C0C0;
            width: 600px;
        }
        .style1
        {
            width: 600px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Label ID="lblUserName" runat="server" Text="Signed in as: "></asp:Label>
        <br />
        <br />
        <asp:Button ID="btnGetAlbums" runat="server" onclick="btnGetAlbums_Click" 
            Text="Get Albums" />
        <br />
        <br />
        <table class="style1">
            <tr>
                <td>
        <asp:ListBox ID="lbAlbums" runat="server" Height="208px" 
            onselectedindexchanged="lbAlbums_SelectedIndexChanged" AutoPostBack="true" Width="260px">
        </asp:ListBox>
                    <br />
        <asp:Button ID="btnDeleteAlbum" runat="server" Text="Delete Album" 
            onclick="btnDeleteAlbum_Click" />
    
        &nbsp;<asp:Label ID="lblDeleteSuccess" runat="server"></asp:Label>
    
                </td>
                <td>
        <asp:ListBox ID="lbPhotos" runat="server" Height="207px" Width="248px">
        </asp:ListBox>
    
                    <asp:Button ID="btnGetPhoto" runat="server" Text="Get Picture" 
            onclick="btnGetPhoto_Click" />
    
                    <br />
                    <asp:Button ID="btnDeletePhoto" runat="server" Text="Delete Photo" 
            onclick="btnDeletePhoto_Click" />
    
        &nbsp;<asp:Label ID="lblDeleteSuccess0" runat="server"></asp:Label>
    
                </td>
            </tr>
        </table>
        <br />
        <asp:Label ID="lblPhoto" runat="server" Text="Photo:" Visible="False"></asp:Label>
        <br />
        <asp:Label ID="lblPhotoLink" runat="server" Text="" Visible="False"></asp:Label>
        <br />
        <asp:Image ID="imgPhoto" runat="server" Visible="False" />
        <br />        
        <p>
        <a name="addalbum">Add Albums:</a><br />
        New Album Name: <asp:TextBox ID="txbxNewAlbum" runat="server"></asp:TextBox>  &nbsp;  
            <asp:Button
            ID="btnAddAlbum" runat="server" Text="Add" onclick="btnAddAlbum_Click" />
        &nbsp;
            <asp:Label ID="lblSuccess" runat="server"></asp:Label>
        </p>
        <p>
        <a name="addphoto">Add photo:</a><br />
        Photo: 
            <asp:FileUpload ID="fileUpload" runat="server" />
&nbsp;<asp:Button ID="btnAdd" runat="server" Text="Add" onclick="btnAdd_Click" />
        &nbsp;<asp:Label ID="lblPhotoSuccess" runat="server"></asp:Label>
        </p></div>
    </form>
    
</body>
</html>
